Skip to main content

mouseDoubleDown

Type

message

Summary

Sent when the user double-clicks.

Syntax

mouseDoubleDown <pButtonNumber>

Description

Handle the mouseDoubleDown message to perform an action when the user double-clicks.

The mouseDoubleDown message is sent to the control that was double-clicked, or to the card if no control was under the mouse pointer.

The mouseDoubleDown message is sent only when the Browse tool is being used. If an unlocked field is clicked with mouse button 1 or 2, no mouseDoubleDown message is sent.

note

If the user clicks a transparent pixel in an image, the mouseDoubleDown message is sent to the object behind the image, not to the image.

Parameters

NameTypeDescription

pButtonNumber

enum

Specifies which mouse button was pressed:

Examples

on mouseDoubleDown myButton -- open a file in an another application
if myButton is not 1 then pass mouseDoubleDown
launch the label of the target with (field "Editor App")
end mouseDoubleDown

control structure: pass

glossary: Browse tool, card, control, double-click, field, image, message, mouse button, mouse pointer, object, pixel, unlock

message: mouseDoubleUp, mouseStillDown

property: doubleClickDelta, doubleClickInterval

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

web

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?